package com.xiaoyi.springboot.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

public class OperationLog {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "operation_log_id", type = IdType.INPUT)
    private String operationLogId = "";
    /**
     * 日志描述
     */
    @TableField("log_description")
    private String logDescription = "";
    /**
     * 方法参数
     */
    @TableField("action_args")
    private String actionArgs = "";
    /**
     * 用户主键
     */
    @TableField("user_no")
    private String userNo = "";
    /**
     * 类名称
     */
    @TableField("class_name")
    private String className = "";
    /**
     * 方法名称
     */
    @TableField("method_name")
    private String methodName = "";
    private String ip = "";
    /**
     * 创建时间
     */
    @TableField("create_time")
    private String createTime = "";
    /**
     * 是否成功 1:成功 2异常
     */
    private String succeed = "";
    /**
     * 异常堆栈信息
     */
    @TableField("messages")
    private String message = "";

    /**
     * 模块名称
     */
    @TableField("model_name")
    private String modelName;

    /**
     * 操作
     */
    private String action = "";



    public OperationLog() {
    }

    public OperationLog(String operationLogId, String logDescription, String actionArgs, String userNo, String className, String methodName, String ip, String createTime, String succeed, String message, String modelName, String action) {
        this.operationLogId = operationLogId;
        this.logDescription = logDescription;
        this.actionArgs = actionArgs;
        this.userNo = userNo;
        this.className = className;
        this.methodName = methodName;
        this.ip = ip;
        this.createTime = createTime;
        this.succeed = succeed;
        this.message = message;
        this.modelName = modelName;
        this.action = action;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getOperationLogId() {
        return operationLogId;
    }

    public void setOperationLogId(String operationLogId) {
        this.operationLogId = operationLogId;
    }

    public String getLogDescription() {
        return logDescription;
    }

    public void setLogDescription(String logDescription) {
        this.logDescription = logDescription;
    }

    public String getActionArgs() {
        return actionArgs;
    }

    public void setActionArgs(String actionArgs) {
        this.actionArgs = actionArgs;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getSucceed() {
        return succeed;
    }

    public void setSucceed(String succeed) {
        this.succeed = succeed;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    @Override
    public String toString() {
        return "OperationLog{" +
                "operationLogId='" + operationLogId + '\'' +
                ", logDescription='" + logDescription + '\'' +
                ", actionArgs='" + actionArgs + '\'' +
                ", userNo='" + userNo + '\'' +
                ", className='" + className + '\'' +
                ", methodName='" + methodName + '\'' +
                ", ip='" + ip + '\'' +
                ", createTime='" + createTime + '\'' +
                ", succeed='" + succeed + '\'' +
                ", message='" + message + '\'' +
                ", modelName='" + modelName + '\'' +
                ", action='" + action + '\'' +
                '}';
    }
}
